function isCross(headA,headB){
    while(headA){
        headA.tag = true
        headA = headA.next
    }
    while(headB){
        if(headB.tag) return true
        headB = headB.next
    }
    return false

}